# -*- coding: utf-8 -*-
# @Time : 2024/2/22 9:32
# @Author : ZH
# @File : 43.py
# @Software: PyCharm
class Solution(object):
    def multiply(self, num1, num2):
        """
        :type num1: str
        :type num2: str
        :rtype: str
        """
        num_list = []
        for i in range(len(num1)):
            # nums = 0
            nums = sum([int(num2) for z in range(int(num1[::-1][i]))])
            nums = int(f'{nums}' + '0' * i)
            num_list.append(nums)
            # print(nums)

        return sum(num_list)


if __name__ == '__main__':
    so = Solution()
    z = so.multiply(num1='2', num2='3')
    print(z)


